package com.atguigu.factory.abstractfactory;

/**
 * @author xgc
 * @create 2021-07-22 14:17
 */
public class PhoneApp {

    public static void main(String[] args) {
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        HongmiFactory hongmiFactory = new HongmiFactory();

        Cpu xiaoMiCpu = xiaomiFactory.getCpu();
        Screen xiaoMiScreen = xiaomiFactory.getScreen();
        xiaoMiCpu.run();
        xiaoMiScreen.size();

        Cpu hongMiCpu = hongmiFactory.getCpu();
        Screen hongMiScreen = hongmiFactory.getScreen();
        hongMiCpu.run();
        hongMiScreen.size();
    }
}
